package com.csg.ses.entity.ses;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDateTime;

/**
 * 角色账户
 * @author wangjun
 * @date 2020/11/16
 */
@Data
@TableName("sys_role_accounts")
@ApiModel(description = "角色账户")
public class SysRoleAccountsEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId
	@ApiModelProperty(value = "主键id")
	private String id;

	/**
	 * 角色id
	 */
	@ApiModelProperty(value = "角色id")
	private String roleId;

	/**
	 * 登录id
	 */
	@ApiModelProperty(value = "登录id")
	private String loginId;

	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Timestamp createTime;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
	private String createdBy;

	/**
	 * 修改时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "修改时间")
	private Timestamp modifyTime;

	/**
	 * 修改人
	 */
	@ApiModelProperty(value = "修改人")
	private String modifiedBy;
}